#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>

/* (C) xiaozhi  2006 wise 6.13 2:54 */

void main()
{
	char *string = "xiaozhi";
	char *password = "";
	int i = 1;
	unsigned int len =0;
	printf("please input the password \n");
	scanf("%s", password);
	// len = strlen(password);
	for (len = 0; len < strlen(password); len++)
	{
		putchar('*');
		putchar(0xd);
	}
	if (strcmp(string, password) == 0)
	{
		printf("scuess!\n");
	}
	else {
		printf("Password error, Try again\t");
		printf("three chance \n");
		while (i < 4) {
			i++;			
			scanf("%s", password);
				if (strcmp(string, password) == 0)
				{
					printf("scuess!\n");
					exit(0);
				}
		}
	}
}